//
//  UserModel.h
//  Cycling
//
//  Created by cjg.mini on 2023/3/5.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UserModel : NSObject

@property (nonatomic, strong) NSString *mobile;
@property (nonatomic, strong) NSString *avatar;
@property (nonatomic, strong) NSString *token;
@property (nonatomic, strong) NSString *username;
@property (nonatomic, strong) NSString *nickname;
@property (nonatomic, strong) NSString *expires_in;
@property (nonatomic, assign) NSInteger user_id;
@property (nonatomic, assign) NSInteger score;

@property (nonatomic) BOOL isNewUser;

+ (instancetype)sharedInstance;
- (BOOL)updateUserInfo;
+ (UserModel *)currentUserInfo;
+ (BOOL)isLogin;
+ (void)setLoginSatus:(BOOL)login;
@end

NS_ASSUME_NONNULL_END
